revXMLRPC_SetSocket
Type
command
Summary
Sets the socket of an XML-RPC document.
Syntax
revXMLRPC_SetSocket <XMLRPCdocumentID>, <RPCsocket>
Description
Use the revXMLRPC_SetSocket function to set the network socket used in the execution of an XML-RPC request. By default, XML-RPC uses the post command to execute an XML-RPC request, but this has the overhead of opening and closing a new socket every time. You can avoid this by re-using an already opened socket.
The revXMLRPC_SetSocket command is part of the XML-RPC library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML-RPC" library checkbox is checked.
Parameters
Name | Type | Description |
---|---|---|
XMLRPCdocumentID | integer | The number returned by the revXMLRPC_CreateRequest when you created the XML-RPC request. |
RPCsocket | string | The number of the opened socket to set and use. |
Examples
revXMLRPC_SetSocket tRequest,tOpenSocket
Related
function: revXMLRPC_GetSocket, revXMLRPC_CreateRequest
glossary: return, XML-RPC, Standalone Application Settings, socket, standalone application, function, command, LiveCode custom library, XML-RPC document
library: XML-RPC library
command: post
Compatibility and Support
Introduced
LiveCode 2.5
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile